package com.adtech.adms.commons.tree;

import java.util.List;

/**
 * 
 * 
 * @author 门宏建 
 * @since 2011-8-11 
 * 
 * @Copyright (C) AD Tech Workshop All Right Reserved
 */
public class TreeNodeImpl implements TreeNode<Object> {
	private static final long serialVersionUID = 3975902277319721145L;
	private Long id;
	private Boolean checked=false;
	private String name="";
	private List<TreeNode<Object>> nodes;
	private Object innerObject;

	private String url="";
	private TreeNode<Object> parent;

	private String target="";


	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Boolean getChecked() {
		return checked;
	}

	public void setChecked(Boolean checked) {
		this.checked = checked;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public List<TreeNode<Object>> getNodes() {
		return nodes;
	}

	public void setNodes(List<TreeNode<Object>> nodes) {
		this.nodes = nodes;
	}

	public Object getInnerObject() {
		return innerObject;
	}

	public void setInnerObject(Object innerObject) {
		this.innerObject = innerObject;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public TreeNode<Object> getParent() {
		return parent;
	}

	public void setParent(TreeNode<Object> parent) {
		this.parent = parent;
	}

	public String getTarget() {
		return target;
	}

	public void setTarget(String target) {
		this.target = target;
	}




	public Boolean getIsParent() {
		return null;
	}

	public Boolean getOpen() {
		return false;
	}

	public boolean isLeaf() {
		return nodes==null||nodes.size()==0;
	}
	
	public Boolean getHalfChecked() {
		return null;
	}

}
